package com.tenement.controller.foreground.user;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.tenement.service.interfaces.IUserService;

/**
 * 编辑资料页面
 * 
 * @author wk
 *
 */
@Controller
public class UserMsgController {

	private static final Log logger = LogFactory.getLog(UserMsgController.class);

	@SuppressWarnings("unused")
	@Autowired
	private IUserService iUserService;

	/**
	 * 进入用户编辑资料页面，用户可以修改自己的昵称，头像图片，绑定邮箱（用于找回密码），手机号
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonMsgHtml.action")
	public String toPersonMsgHtml() {
		logger.info("【-用户进入个人编辑资料页面-】");
		return "redirect:/view/foreground/user/personmsg/person_msg.html";
	}

	/**
	 * 进入用户修改手机号页面1
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPhoneHtml1.action")
	public String toPersonModifyPhoneHtml1() {
		return "redirect:/view/foreground/user/personmsg/modifyPhone/person_modifyphone1.html";
	}

	/**
	 * 进入用户修改手机号页面2
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPhoneHtml2.action")
	public String toPersonModifyPhoneHtml2() {
		return "redirect:/view/foreground/user/personmsg/modifyPhone/person_modifyphone2.html";
	}
	/**
	 * 进入用户修改手机号页面3
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPhoneHtml3.action")
	public String toPersonModifyPhoneHtml3() {
		return "redirect:/view/foreground/user/personmsg/modifyPhone/person_modifyphone3.html";
	}
	/**
	 * 进入用户绑定邮箱1
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonBindingMailHtml1.action")
	public String toPersonBindingMailHtml1() {
		return "redirect:/view/foreground/user/personmsg/bindEmail/person_bindemail1.html";
	}

	/**
	 * 进入用户绑定邮箱2
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonBindingMailHtml2.action")
	public String toPersonBindingMailHtml2() {
		return "redirect:/view/foreground/user/personmsg/bindEmail/person_bindemail2.html";
	}

	/**
	 * 进入用户修改绑定邮箱1
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyEmailHtml1.action")
	public String toPersonModifyEmailHtml1() {
		return "redirect:/view/foreground/user/personmsg/modifyEmail/person_modifyemail1.html";
	}

	/**
	 * 进入用户修改绑定邮箱2
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyEmailHtml2.action")
	public String toPersonModifyEmailHtml2() {
		return "redirect:/view/foreground/user/personmsg/modifyEmail/person_modifyemail2.html";
	}

	/**
	 * 进入用户修改绑定邮箱3
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyEmailHtml3.action")
	public String toPersonModifyEmailHtml3() {
		return "redirect:/view/foreground/user/personmsg/modifyEmail/person_modifyemail3.html";
	}
	
	/**
	 * 进入修改密码1
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPwdHtml1.action")
	public String toPersonModifyPwdHtml1() {
		return "redirect:/view/foreground/user/personmsg/modifyPwd/person_modifypwd1.html";
	}
	
	/**
	 * 进入修改密码2
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPwdHtml2.action")
	public String toPersonModifyPwdHtml2() {
		return "redirect:/view/foreground/user/personmsg/modifyPwd/person_modifypwd2.html";
	}
	
	/**
	 * 进入修改密码3
	 * 
	 * @return
	 */
	@RequestMapping(value = "/toPersonModifyPwdHtml3.action")
	public String toPersonModifyPwdHtml3() {
		return "redirect:/view/foreground/user/personmsg/modifyPwd/person_modifypwd3.html";
	}

}
